import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/threeVedio',
      name: 'threeVedio',
      component: () => import('@/views/threeVedio.vue')
    },
    {
      path: '/threeJs',
      name: 'threeJs',
      component: () => import('@/views/threeJs.vue')
    },
    {
      path: '/echartsLine',
      name: 'echartsLine',
      component: () => import('@/views/echartsLine.vue')
    },
    {
      path: '/tree',
      name: 'tree',
      component: () => import('@/views/tree.vue')
    },
    {
      path: '/tableCheck',
      name: 'tableCheck',
      component: () => import('@/views/tableCheck.vue')
    },
    {
      path: '/vxetable',
      name: 'vxetable',
      component: () => import('@/views/vxetable.vue')
    },
    {
      path: '/cloudBIMGIS',
      name: 'cloudBIMGIS',
      component: () => import('@/views/cloudBIMGIS.vue')
    },
    {
      path: '/cloudBIMGIS2',
      name: 'cloudBIMGIS2',
      component: () => import('@/views/cloudBIMGIS2.vue')
    },
    {
      path: '/webBIMGIS',
      name: 'webBIMGIS',
      component: () => import('@/views/webBIMGIS.vue')
    },
    {
      path: '/draggable',
      name: 'draggable',
      component: () => import('@/views/draggable.vue')
    },
    {
      path: '/vueuse',
      name: 'vueuse',
      component: () => import('@/views/vueuse.vue')
    },
    {
      path: '/previewFile',
      name: 'previewFile',
      component: () => import('@/views/previewFile.vue')
    },
    {
      path: '/animation',
      name: 'animation',
      component: () => import('@/views/animation.vue')
    },
    {
      path: '/organizationalChart',
      name: 'organizationalChart',
      component: () => import('@/views/organizationalChart.vue')
    },
    {
      path: '/amp',
      name: 'amp',
      component: () => import('@/views/amp.vue')
    },
    {
      path: '/antvG6',
      name: 'antvG6',
      component: () => import('@/views/antvG6.vue')
    },
    {
      path: '/vueEcharts',
      name: 'vueEcharts',
      component: () => import('@/views/vueEcharts.vue')
    },
    {
      path: '/vue-dnd',
      name: 'vue-dnd',
      component: () => import('@/views/vue-dnd/index.vue')
    },
    {
      path: '/vue-dnd2',
      name: 'vue-dnd2',
      component: () => import('@/views/vue-dnd2/index.vue')
    },
    {
      path: '/vue-grid-layout',
      name: 'vue-grid-layout',
      component: () => import('@/views/vue-grid-layout.vue')
    },
    {
      path: '/vue-grid-layout2',
      name: 'vue-grid-layout2',
      component: () => import('@/views/vue-grid-layout2.vue')
    },
    {
      path: '/read-file',
      name: 'read-file',
      component: () => import('@/views/read-file.vue')
    },
    {
      path: '/echarts-radar',
      name: 'echarts-radar',
      component: () => import('@/views/echarts-radar.vue')
    }
  ]
})

export default router
